package com.example.designPatten.factory.abstractFactory;


/**
 * Created by com on 16/3/22.
 */
public abstract class PizzaStore {

    public Pizza orderPizza(PizzaIngredientFactory ingredientFactory){
        Pizza pizza;
        pizza =createPizza(ingredientFactory);

        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();

        return pizza;
    }

    public abstract Pizza createPizza(PizzaIngredientFactory ingredientFactory);

}
